import request from '@/utils/request'

// 查询试卷
export function tExamTestpaperPageList(query) {
    return request({
      url: '/tExamTestpaper/query',
      method: 'get',
      params: query
    })
}

//新增试卷
export function addTestPaper(data) {
  return request({
    url: '/tExamTestpaper/addTestpaper',
    method: 'post',
    data
  })
}

//修改试卷
export function updateTestPaper(data) {
  return request({
    url: '/tExamTestpaper/update',
    method: 'put',
    data
  })
}

//试卷详情
export function examinationDetails(id) {
  return request({
    url: '/tExamTestpaper/examinationDetails/'+id,
    method: 'get'
  })
}

//删除
export function deleteTestPaper(data) {
  return request({
    url: '/tExamTestpaper/delete',
    method: 'post',
    data
  })
}


//发布试卷
export function publishTestPaper(data) {
  return request({
    url: '/Publish/insert',
    method: 'post',
    data
  })
}